package com.ktgj.pay.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.pay.mapper.InvoiceOperatelogMapper;
import com.ktgj.pay.domain.InvoiceOperatelog;
import com.ktgj.pay.service.IInvoiceOperatelogService;

/**
 * 发票操作日志Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-01-24
 */
@Service
public class InvoiceOperatelogServiceImpl implements IInvoiceOperatelogService 
{
    @Autowired
    private InvoiceOperatelogMapper invoiceOperatelogMapper;

    /**
     * 查询发票操作日志
     * 
     * @param id 发票操作日志ID
     * @return 发票操作日志
     */
    @Override
    public InvoiceOperatelog selectInvoiceOperatelogById(Long id)
    {
        return invoiceOperatelogMapper.selectInvoiceOperatelogById(id);
    }

    /**
     * 查询发票操作日志列表
     * 
     * @param invoiceOperatelog 发票操作日志
     * @return 发票操作日志
     */
    @Override
    public List<InvoiceOperatelog> selectInvoiceOperatelogList(InvoiceOperatelog invoiceOperatelog)
    {
        return invoiceOperatelogMapper.selectInvoiceOperatelogList(invoiceOperatelog);
    }

    /**
     * 新增发票操作日志
     * 
     * @param invoiceOperatelog 发票操作日志
     * @return 结果
     */
    @Override
    public int insertInvoiceOperatelog(InvoiceOperatelog invoiceOperatelog)
    {
        return invoiceOperatelogMapper.insertInvoiceOperatelog(invoiceOperatelog);
    }

    /**
     * 修改发票操作日志
     * 
     * @param invoiceOperatelog 发票操作日志
     * @return 结果
     */
    @Override
    public int updateInvoiceOperatelog(InvoiceOperatelog invoiceOperatelog)
    {
        return invoiceOperatelogMapper.updateInvoiceOperatelog(invoiceOperatelog);
    }

    /**
     * 批量删除发票操作日志
     * 
     * @param ids 需要删除的发票操作日志ID
     * @return 结果
     */
    @Override
    public int deleteInvoiceOperatelogByIds(Long[] ids)
    {
        return invoiceOperatelogMapper.deleteInvoiceOperatelogByIds(ids);
    }

    /**
     * 删除发票操作日志信息
     * 
     * @param id 发票操作日志ID
     * @return 结果
     */
    @Override
    public int deleteInvoiceOperatelogById(Long id)
    {
        return invoiceOperatelogMapper.deleteInvoiceOperatelogById(id);
    }
}
